#include <sys_head.h>

int main(int argc, char const *argv[])
{
    int ret = mkfifo("/home/student/桌面/fifo",0666);
    if (-1 == ret)
    {
        perror("mkfifo");
    }
    int fd = open("/home/student/桌面/fifo",O_WRONLY);
    char buf[128] = "你好";
    write(fd,buf,sizeof(buf));
    close(fd);
    return 0;
}
